<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>json数据测试</title>
</head>
<body>
    
    <script>
     let obj1 = {
        a : "a1",
        b : "b2"
     }

     let obj2 = JSON.stringify(obj1);
     console.log('obj2',typeof obj2,obj2);

     let obj3 = {"a" : "a1"};
    //  let obj4 = JSON.parse(obj3)
    // console.log('obj3',typeof obj3,obj3,obj4);
     console.log('obj3',typeof obj3,obj3);
    </script>
    <style>

    </style>
</body>
</html>